<?php //author Daryl Hop Yek
session_start();
 ?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pshark Phishing Data</title>
<link href="mainstyles.css" rel="stylesheet" type="text/css" />
</head>

<body>

<a href="index.php"><img src="shark.gif" width="229" height="180" alt="Pshark Icon" style="float:left ; margin-right: 15px; margin-bottom: 15px" /></a><h1>Pshark</h1>
<h2>A Proactive Approach to Preventing Phishing Attacks</h2>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
 <?php
 include 'header.php';
 echo "<a href=\"memberlist.php\"><img src=\"memberlist.png\" width=\"80\" height=\"33\" alt=\"Member's List\" /></a> \t <a href=\"list.php\"><img src=\"list.png\" width=\"80\" height=\"33\" alt=\"Phishing \" /></a>";
include("dbconnect.php");


		$sql = "SELECT * FROM RECORD";
		try 
		{
            echo "<table width=\"60%\" border=\"1\">";
            echo "<tr><td>URL</td><td>Phising Site Record</td><td>Phishing Site Removed</td><td>Remove</td><td>Alter</td></tr>";
			foreach ($dbh->query($sql) as $row)
			{
				?>
				<form id="dataForm" name="dataeForm" method="post" action="dbprocess.php">
                  <tr>
<?php

	echo "<td><input type='text' name='url' value='$row[url]' /> </td>";
	echo "<td><input type='text' name='dateenter' value='$row[dateenter]' /> </td>";
	echo "<td><input type='text' name='dateremoved' value='$row[dateremoved]' /> </td>";
	echo "<input type='hidden' name='id' value='$row[id]' />";
?>
<td><input type="submit" name="submit" value="Remove" /></td>
<td><input type="submit" name="submit" value="Alter" /></td>
  </tr>
</form>
<?php
			}
			$dbh = null;
			echo "</table>";
		}
		catch (Exception $e)
		{}
	


?>

